const resultComps = {}
let requireComponent = require.context(
  './', // 在当前目录下查找
  false, // 不遍历子文件夹
  /\.vue$/ // 正则匹配 以 .vue结尾的文件
)
requireComponent.keys().forEach(fileName => {
  let comp = requireComponent(fileName)
  resultComps[fileName.replace(/^\.\/(.*)\.\w+$/, '$1')] = comp.default
})

export const componentsOne = [
  { type: 1, title: '基本信息', componentsName: 'personInfoVO'},
  { type: 2, title: '家庭情况', componentsName: 'baseFamilyVO' },
  { type: 3, title: '吸毒查获情况或其他前科', componentsName: 'otherCriminalRecordVO' },
  { type: 4, title: '位置信息', componentsName: 'locationInfoVO' },
  { type: 5, title: '省外异地管控申请信息', componentsName: 'outsideControlApplyInfoVO' }
]

export const componentsTwo = [
  { type: 1, title: '基本信息', componentsName: 'personInfoVO' },
  { type: 2, title: '社会关系', componentsName: 'socialRelationVO' },
  { type: 3, title: '吸毒查获情况或其他前科', componentsName: 'otherCriminalRecordVO' },
  { type: 4, title: '位置信息', componentsName: 'locationInfoVO' },
  { type: 5, title: '省外异地管控申请信息', componentsName: 'outsideControlApplyInfoVO' }
]

export default resultComps